﻿using System;
using System.Net.Sockets;

using Minecraft.ConnTest.Client.Send;
using Minecraft.Model;
using Minecraft.Model.ReqResp;

namespace Minecraft.ServerHall.Client.Receive
{
	public class Player_PlayerLogin
	{
		public void Execute(Socket socketClient, EnumCommand command, string respStr)
		{
			var resp = respStr.JsonDeserialize<PlayerLoginResp>();
			RespLevelJudge.Do(command, resp, () =>
			{
				//登录成功

				ComManager.Send(socketClient, () =>
				{
					return SendBlueprintStudy.GetReq();
				});
			});
		}
	}
}
